// AtInput 的高阶组件
import { AtInput } from 'taro-ui';
import { AtInputProps } from 'taro-ui/types/input';

import './index.less';

interface InputProps extends AtInputProps {
  hidden?: boolean
}

export function Input(props: InputProps) {
  const { hidden, className } = props
  return (
    <AtInput
      {...props}
      className={`${hidden ? 'self-input--hidden' : ''} ${className ?? ''}`}
    />
  )
}
